RasterLayers in a RasterArray object and Spatial* objects in a SpatialArray object.Double bracket '[[' refers to layers' name in the RasterStack of the RasterArray and the SpatialStack of the SpatialArray. Use single brackets to replace elements based on their position in the RasterArray/SpatialArray.
# S4 method for XArray,ANY,ANY,ANY
[[(x, i) <- value# S4 method for SpatialArray,ANY,missing,SpatialStack
[[(x, i) <- value
RasterArray or SpatialArray object.
subscript of layers to replace.
character vector.
None.